/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.sys.entity.user;

import com.thinkgem.jeesite.modules.hk.adv.entity.HkAllAdv;
import org.hibernate.validator.constraints.Length;
import com.thinkgem.jeesite.modules.hk.sys.entity.user.HkUser;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 用户打赏日志Entity
 * @author 罗天文
 * @version 2018-05-08
 */
public class HkAdvRewardLog extends DataEntity<HkAdvRewardLog> {
	
	private static final long serialVersionUID = 1L;
	private HkAllAdv source;		// 广告id
	private String currencyType;		// 类型
	private String num;		// 数量
	private String integral;		// 乐币数量
	private HkUser user;		// 用户id
	
	public HkAdvRewardLog() {
		super();
	}

	public HkAdvRewardLog(String id){
		super(id);
	}

	public HkAllAdv getSource() {
		return source;
	}

	public void setSource(HkAllAdv source) {
		this.source = source;
	}
	
	@Length(min=0, max=1, message="类型长度必须介于 0 和 1 之间")
	public String getCurrencyType() {
		return currencyType;
	}

	public void setCurrencyType(String currencyType) {
		this.currencyType = currencyType;
	}
	
	@Length(min=0, max=11, message="数量长度必须介于 0 和 11 之间")
	public String getNum() {
		return num;
	}

	public void setNum(String num) {
		this.num = num;
	}
	
	@Length(min=0, max=11, message="乐币数量长度必须介于 0 和 11 之间")
	public String getIntegral() {
		return integral;
	}

	public void setIntegral(String integral) {
		this.integral = integral;
	}
	
	public HkUser getUser() {
		return user;
	}

	public void setUser(HkUser user) {
		this.user = user;
	}
	
}